#include<cstdio>

typedef long long ll;

ll ksm(ll a, int b, int p) 
{
	ll res=1,tmp=a;
	while(b>0)
	{
		if(b&1)
			res=res*tmp%p;
		tmp=tmp*tmp%p;
		b>>=1;
	}
	return res;
}

const ll MOD=19260817;

inline ll read()
{
	int X=0; 
	bool flag=1; 
	char ch=getchar();
	while(ch<'0'||ch>'9') 
	{
		if(ch=='-') 
			flag=0; 
		ch=getchar();
	}
	while(ch>='0'&&ch<='9') 
		X=((X<<1)+(X<<3)+ch-'0')%MOD,ch=getchar();
	if(flag)return X;
	return(X-1);
}

int main()
{
	ll a,b;
	a=read(),b=read();
	if(b==0)
	{
		puts("Angry!");
		return 0;
	}
	a=a*ksm(b,MOD-2,MOD)%MOD;
	printf("%lld",a);
	return 0;
}